package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Video;
import com.tanhua.model.vo.PageResult;

import java.util.List;
import java.util.Map;

public interface videoApi {
    //保存视频
    void save(Video video);

    //根据id集合查询
    List<Video> findByIds(String[] vids, Integer page, Integer pagesize);

    //查询所有
    List<Video> findAll(Integer page, Integer pagesize);

    //根据用户id分页查询用户发布的视频列表
    PageResult findByUserId(Long uid, Integer page, Integer pagesize);

    Integer videoCommentHandle(String videoId, Long handleId,Integer type,String txt);

    Integer disLike(String videoId, Long userId);

    Map findVideoComments(Integer page, Integer pageSize, String videoId);
}
